---
title: "SQL-VP-017: Retrieve a policy's parent policy number (obsolete)"
summary: Retrieves a policy's legacy parent policy number via an obsolete Oracle package call.
status: draft
owner: SAIF Claims BOF team
last_reviewed: 2026-08-21
library: SAIF.Business.View.Policy
reference_type: embedded
---

# SQL-VP-017 Retrieve a policy's parent policy number (obsolete)

Used by `clsPolicyData.GetParentPolicyData()`, an `<Obsolete>`-marked method superseded by the
`Associations`/`clsAssociationTypeCode` model, retained for backward compatibility.*

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-VP-017 |
| **Operation type** | Read |
| **Execution method** | Stored procedure (scalar function via `ReturnValue`) |
| **Database** | Oracle |
| **Schema** | `[unqualified]**` |
| **Command type** | StoredProcedure |
| **Business object** | `clsPolicyData` |
| **Criteria property** | `GetParentPolicyData()` (ad hoc method, Obsolete) |
| **Lifecycle method** | ad hoc method |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `in_policy_num` | Input | Decimal | N/A | Policy number. |
| `in_is_policyholder_user` | Input | Boolean/flag | N/A | Whether the calling user is a policyholder. |
| `v_parent_policy_num` | ReturnValue | Decimal | N/A | The resolved parent policy number. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| *(not directly visible — encapsulated in procedure body)* | SELECT | N/A |

## Sample SQL

```sql
BEGIN
  :v_parent_policy_num := pk72846_view_policy.getParentPolicy(
    in_policy_num             => :in_policy_num,
    in_is_policyholder_user   => :in_is_policyholder_user
  );
END;
```

*Call signature reconstructed from `DataRequest.SQLStatement`/`AddParm` calls; the procedure body
resides in the Oracle database and was not retrieved this run. Calling method is `<Obsolete>`.*

> **Note:** Statements marked with `*` were inferred from code structure, naming
> conventions, or contextual evidence where direct confirmation was not available
> in source artifacts. Statements marked with `**` could not be confirmed; treat
> as unknown until verified.

## Sources
- `SAIF.Business.View.Policy\clsPolicyData.vb`
